<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        function Foo(){
            this.getName = function(){
                console.log(11)
            }
            return this;
        }
        Foo.getName = function(){
            console.log(22)
        }
        Foo.prototype.getName = function(){
            console.log(33)
        }
        var getName = function(){
            console.log(44)
        }
        function getName(){
            console.log(55)
        }

        // getName();
        Foo.getName();
        Foo().getName();
        new Foo().getName();
        getName();
        new Foo.getName();
        new new Foo().getName();


        for(var i=1;i<=5;i++){
            setTimeout(function abc(){
                console.log(i)
            },i*1000)
        }
        

    </script>
</body>
</html>